package com.py.inbound.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * ${subTable.functionName}对象 od_purchase_details
 *
 * @author 童佳
 * @date 2024-11-21
 */
public class OdPurchaseDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货明细主键 */
    private Integer phDetailsId;

    /** 进货订单编号 */
    @Excel(name = "进货订单编号")
    private String phCode;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productName;

    /** 货品编码 */
    @Excel(name = "货品编码")
    private String productCode;

    /** 规则型号 */
    @Excel(name = "规则型号")
    private String productModel;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 货品类型 */
    @Excel(name = "货品类型")
    private String productType;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Integer inventory;

    /** 货品数量 */
    @Excel(name = "货品数量")
    private Integer productNum;

    /** 进货单价 */
    @Excel(name = "进货单价")
    private BigDecimal price;

    @Excel(name = "已入库数量")
    private Integer alreadyNum;



    /** 退货数量 */
    @Excel(name = "退货数量")
    private Integer rejectedNum;

    private Integer notStocked;//扩展字段未入库数量



    public BigDecimal getInboundAmount() {
        return inboundAmount;
    }

    public void setInboundAmount(BigDecimal inboundAmount) {
        this.inboundAmount = inboundAmount;
    }

    private BigDecimal inboundAmount; //扩展字段进货金额

    public BigDecimal getInboundPrice() {
        return inboundPrice;
    }

    public void setInboundPrice(BigDecimal inboundPrice) {
        this.inboundPrice = inboundPrice;
    }

    private BigDecimal inboundPrice;//扩展入库单价
    public Integer getNotStocked() {
        return notStocked;
    }

    public void setNotStocked(Integer notStocked) {
        this.notStocked = notStocked;
    }
    public Integer getAlreadyNum() {
        return alreadyNum;
    }

    public void setAlreadyNum(Integer alreadyNum) {
        this.alreadyNum = alreadyNum;
    }

    public void setPhDetailsId(Integer phDetailsId)
    {
        this.phDetailsId = phDetailsId;
    }

    public Integer getPhDetailsId()
    {
        return phDetailsId;
    }
    public void setPhCode(String phCode)
    {
        this.phCode = phCode;
    }

    public String getPhCode()
    {
        return phCode;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }
    public void setProductModel(String productModel)
    {
        this.productModel = productModel;
    }

    public String getProductModel()
    {
        return productModel;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }
    public void setInventory(Integer inventory)
    {
        this.inventory = inventory;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Integer getInventory()
    {
        return inventory;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }



    public BigDecimal getPrice()
    {
        return price;
    }


    public void setRejectedNum(Integer rejectedNum)
    {
        this.rejectedNum = rejectedNum;
    }

    public Integer getRejectedNum()
    {
        return rejectedNum;
    }

    @Override
    public String toString() {
        return "OdPurchaseDetails{" +
                "phDetailsId=" + phDetailsId +
                ", phCode='" + phCode + '\'' +
                ", productName='" + productName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productModel='" + productModel + '\'' +
                ", unit='" + unit + '\'' +
                ", productType='" + productType + '\'' +
                ", inventory=" + inventory +
                ", productNum=" + productNum +
                ", price=" + price +
                ", alreadyNum=" + alreadyNum +
                ", rejectedNum=" + rejectedNum +
                ", notStocked=" + notStocked +
                ", inboundAmount=" + inboundAmount +
                '}';
    }
}
